function [cellData] = SSBSssGen(cellParams,cellData)
    cellID1 = cellParams.ssb.L1.cellID1;
    cellID2 = cellParams.ssb.L1.cellID2;

    x0 = zeros(1,127);
    x1 = zeros(1,127);
    x0init = [1,0,0,0,0,0,0];    
    x1init = [1,0,0,0,0,0,0];    
    x0(1:7) = x0init;
    x1(1:7) = x1init;

    for i = 1:120
        x0(i+7) = mod(x0(i+4)+x0(i),2);
        x1(i+7) = mod(x1(i+1)+x1(i),2);
    end

    m0 = 15*floor(cellID1/112)+5*cellID2;
    m1 = mod(cellID1,112);

    n = 1:127;
    dPSS0 = 1-2*x0(mod(n+m0,127)+1);
    dPSS1 = 1-2*x1(mod(n+m1,127)+1);

    cellData.ssb.dPSS0 = dPSS0;
    cellData.ssb.dPSS1 = dPSS1;
    cellData.ssb.dPSS = dPSS0.*dPSS1;
end